import request from '@/utils/request'

// 查询科研项目列表
export function listResearch(query) {
  return request({
    url: '/project/research/list',
    method: 'get',
    params: query
  })
}

// 查询科研项目详细
export function getResearch(projectId) {
  return request({
    url: '/project/research/' + projectId,
    method: 'get'
  })
}

// 新增科研项目
export function addResearch(data) {
  return request({
    url: '/project/research',
    method: 'post',
    data: data
  })
}

// 修改科研项目
export function updateResearch(data) {
  return request({
    url: '/project/research',
    method: 'put',
    data: data
  })
}

// 删除科研项目
export function delResearch(projectId) {
  return request({
    url: '/project/research/' + projectId,
    method: 'delete'
  })
}


export function getTracklist(projectId) {
  return request({
    url: '/project/research/tracklist/'+projectId,
    method: 'get'
  })
}

export function TrackBack(data){
  return request({
    url: '/project/research/trackback',
    method: 'post',
    data: data
  })
}

export function sendVerificationCode(){
  return request({
    url: '/project/research/sendCode',
    method: 'get'
  })
}

export function  verifyVerificationCode(VerificationCode){
  return request({
    url: '/project/research/verifyCode/'+VerificationCode,
    method: 'post'
  })
}